﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace fCloud.SensorApi.Models;

[Table("sensors")]
public class Sensor
{
    [Key]
    [Column("id")]
    public int Id { get; set; }
    [Column("sensor_code")]
    public string SensorCode { get; set; }
    [Column("sensor_name")]
    public string SensorName { get; set; }
    [Column("sensor_sn")]
    public string SensorSn { get; set; }
    [Column("gateway_id")]
    public string GatewayId { get; set; }
    [Column("sensor_type")]
    public string SensorType { get; set; }
    [Column("sensor_mode")]
    public string SensorMode { get; set; }
    [Column("sensor_topic")]
    public string Sensortopic { get; set; }
    [Column("sensor_subscribe")]
    public string SensorSubscribe { get; set; }
    [Column("flag")]
    public int Flag { get; set; }
    [Column("online_status")]
    public int OnlineStatus { get; set; }
}